#include"../include/AGXkit.h"


// 构造函数定义
AGXKit::AGXKit(const std::string &model, int AI, int CUDACores, int TensorCores, int memory, int storage)
    : model(model), AI(AI), CUDACores(CUDACores), TensorCores(TensorCores), memory(memory), storage(storage) {}


AGXKit::AGXKit(): AGXKit("AGX Xavier", 32, 512, 64, 32, 32) {}

// 将属性写入文件的方法
void AGXKit::writeToFile(std::ofstream &file) {
    if (file.is_open()) {
        file << "AGXKit套件：" << std::endl;
        file << " Model: " << model << std::endl;
        file << " AI Cores: " << AI << std::endl;
        file << " CUDA Cores: " << CUDACores << std::endl;
        file << " Tensor Cores: " << TensorCores << std::endl;
        file << " Memory: " << memory << std::endl;
        file << " Storage: " << storage << std::endl;
    }
}

// 打印属性的方法
void AGXKit::print() const {
    std::cout << "AGXKit套件：" << std::endl;
    std::cout << " Model: " << model << std::endl;
    std::cout << " AI Cores: " << AI << std::endl;
    std::cout << " CUDA Cores: " << CUDACores << std::endl;
    std::cout << " Tensor Cores: " << TensorCores << std::endl;
    std::cout << " Memory: " << memory << std::endl;
    std::cout << " Storage: " << storage << std::endl;
}